Week 2 - Blink Using OS
Main Page
Modules
Data Structures
Files
File List
Globals
startup.c
Go to the documentation of this file.
1
/**************************************************
2
* Texas A&M University
3
* Electronic Systems Engineering Technology
4
* ENTC-489 Embedded Real Time Software Development
5
* Author: willey
6
* File: startup.c
7
**************************************************/
15
#include <stdint.h>
16
#include <stdbool.h>
17
#include "driverlib/sysctl.h"
18
#include "driverlib/rom.h"
19
#include "os.h"
20
#include "
bsp.h
"
21
#include "
blink.h
"
22
23
/**************************************************/
26
/**************************************************/
27
28
/**************************************************/
35
int
main
(
void
)
36
{
37
/* start the system clock */
38
ROM_SysCtlClockSet(
CPU_80MHZ_CLOCK
);
39
40
/* disable interrupts until we get everything started */
41
CPU_IntDis();
42
43
/* Initialize "uC/OS-II, The Real-Time Kernel" */
44
OSInit();
45
46
/* initialize the I/O ports */
47
init_gpio
();
48
49
/* create the tasks here */
50
start_blinking
();
51
52
/* Start multitasking (i.e. give control to uC/OS-II) */
53
OSStart();
54
55
while
(1)
56
{
57
/* we never get here, OSStart() above gets the ball rolling */
58
}
59
}
/* main() */
60
61
62
/**************************************************/
64
/* Close of Doxygen group Application
65
**************************************************/
66
bsp.h
init_gpio
void init_gpio(void)
Definition:
bsp.c:26
CPU_80MHZ_CLOCK
#define CPU_80MHZ_CLOCK
Definition:
bsp.h:73
blink.h
start_blinking
void start_blinking(void)
Definition:
blink_task.c:164
main
int main(void)
Definition:
startup.c:35
Generated on Mon Feb 2 2015 20:06:10 for Week 2 - Blink Using OS by
1.8.9.1